# -*- coding: utf-8 -*-

"""
@Remark: 数据库设置的路由文件
"""

from django.urls import path, re_path
from rest_framework import routers

from apps.databasetest.testcon import DatabaseTestViewSet

system_url = routers.SimpleRouter()
# system_url.register(r'dbtest', DatabaseTestViewSet, basename='sys_database_config')

urlpatterns = [
    path('data_val/default/', DatabaseTestViewSet.as_view({'get': 'test_default'}), name='测试默认数据库连接'),
    path('test_db/dynamic/', DatabaseTestViewSet.as_view({'get': 'test_dynamic'}), name='测试自定义数据库连接'),

]
urlpatterns += system_url.urls
